﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Intermediate.Data;

namespace Shop.Intermediate.Repository
{
    public interface IDepartmentRepository:IPageSplit
    {
        void Create(IDepartment department);
        void Update(IDepartment department);
        IDepartment GetEntity(string code);
        void Delete(string code);
        IEnumerable<IDepartment> GetList();
        IEnumerable<IDepartment> GetList(string condition, object[] obj);
        IEnumerable<IDepartment> GetList(string condition, object[] whereObj, string ordering, object[] orderObj);
        void SubmitChanges();
    }
}
